fix potetntialRaise is not defined; use var; fix typo