working on gallery adapters