adding method that creates new type only if does not exists already