change @amount to_i