updated i-1 in hw3client