select from table if fail