adding a helper method