create some helper methods