modifies paths