changed p into a dir