add drawing functions