added return to long wall subroutine