fix the return value to the console