no need to scan whole buffer