clean the bin and gen