fixed bug: using aggregate class