variable names fix. new formula for contrast