small simplification of function slot