removed unused subroutines