replaced 1e-7 with 1e-4