buffer needs to be empty