moved domain/range creation to object and data properties