removed borders checking