Updating histogram