added square and residual to units plots