commented drawing functions