revised function computer_boundary()