modified reducer to use ln instead of pd