trying to json_encode instead