implements toString methods