remove numerical inaccuracy in removals code