added new query if less than 5 events