replace , with - (after `while loop')