tweaked some magic numbers for better convergence