changed toString to JSONstringify