fixing toString method