first step in select