changed drawing sequence