makes use of a helper function instead of a direct import