updated sample7 bug