create a helper method