added aggregate method to Criteria