changed another method over to json comparisons