updated to cos