calculating adjusted means..work in progress..