added possibility to vary bins between analyses