create types inside module