Csm corrected

this should solve issue #1