implement cut()