removed unused subroutine