simple select core implementation