simplified some of the strtolower()'s with