change eps to 0.001