fix static subroutine