corrected a negative event error and modified the event class to support event type comparision for unprocessed queue