fixed mistakes in a equation and adjusted params