added removeEpsilon to simplify