added rects for the xpm and gpm graphs