use Rect instead of RectF