update subroutine
in windows