fixed an assignment that was mistyped as a comparison, other changes to make jsl happy