got rid of json_encode