def and implement some methods of draw module