edited for test to include range source