Rmoving execessive data and adding the Rectangle