handling aggregate ids