updated reshape

additions to reshape code