changed directory1 to directory in update