added a draw method