remove useless code
fix precision