drawing functions connected