adapter
verify that len is correct