fix - check if it is a collection