factor marginalization done