changed everything to JSON