cleanup in first/last