type and name together should be unique