setting up for checking the rectangle inputs