updated fillrect call