updated evenOccurrence problem