The invention provides new heterocyclic compounds having the general formula (I) wherein B, C, L, X, Y, RL and R3 to R5 are as described herein, compositions including the compounds, processes of manufacturing the compounds and methods of using the compounds.