Made a type on in select_spec method