custom helper method