refine first/last