modified variable names to avoid conflict; (1-p) for log-normal