created same rules to manage the type