23 4 5 and 6 The invention relates to pyridopyrimidinone compounds of formula (I) or pharmaceutically acceptable salts thereof wherein X R R RRRRare as defined herein as well as pharmaceutical compositions comprising such compounds useful as NMDA receptor modulators in the treatment of neurological and psychiatric conditions.