amount should be an integer