Changed lower to upper and fixed equalities