tried to fit everything within the graphics window