adding some helper methods