set bin value and window width as input