move types to type, add source node