removed unneeded helper function