updated program to support commas