adding fromJSON