toString method updated