refine log position