finish baseAdapter function