fix bug in subroutine prototype