filled out code for resetting vertices, width