attempt at adapter