refine some tasks