SELECT CASE TYPE