removes useless dependencies