added toString method to make logging easier