change CGFloat to float