changes to AutomatinElementAdapter