catastrophic error upon running hide boarder function