added initial code for cutting line