fix doc, refine first/last