work in progress, standard deviation, and array reduction calc