removing non-path stuff