updating last bin