complete function cut