shifted draw functions to a separate file