adding a flag for decimal output