changed type of lastTimeDrawed