added precision to avoid bugs