remove borders from start and end