removing some unnecessary paths