added missing helper function