updated cut out code