recursively just removing bin and gen