added check to save to Parse