added glucose update and necessary parameters