gemed
gemed and rounding error fix