readding bin and gen