added equation for rtf