fixed returned output string