what's wrong here? the output seems to be correct.