made changes in toString method