handling incomplete generation