changed cuts function