if directory -1 change