helper function added