multi thread added for drawing