binning tweaks + memory leak fixed