added a rectangle which is drawn to the screen