subroutine mods