the bin is now an argument instead of global var
remove accidental var_dump