removed unused ios-specific Cg formula