changed cm to cos