only emit parts if they are defined