fixed tolerance, removed useless prints