switched from Float to CGFloat to build properly on 64-bit