set type outside of content constructor