added helper function for operations