fixed bug with rect and added bez