fixed end ouput to toString