added helper function