added working with adapters