change toString functions for better usability