added option to round the amount
remove debug messsage