add basic select code