remove uncessary path