moved unhappiness values and calculations into access out of workspace.