update simulation routines