cutting the edges