updated sample space derivations