make skelton of select function