use adapter and models