once function for all toString methods