remove uneeded subroutine