simplified api, provided domain and range array options