refactor cut as a variable in generalizer