added code for archetypes