add adapter and data