changed on create function to a draw function