minor bug in output worksheet3