basic draw functions moved to new file