bin and gen