remove useless path capture