change type to rim_type in _form