replacement with typetags