fixed compile errors in output