removes uncessary path addition