add some helper methods