remove debug print statements, update Select() implementation