removes unecessary dependencies