some helper method