revert changes that were caused by my non knowledge of JSON