removed toJSON call