fixing missing commas & empty values