changed collector name to attribute instead of object