added in evaluation for ranges and also join for final array