adding logic in case commas already exist