set the type