changed draw() method calling logic