added helper method