adding parent path method