Cohen function fixed