Replace double with CGFloat