added beg of code for fillarea but viewport broken