change the return to JSON