code cleanup: give function a useful name