reset the amount variable type from float to double