4/17/14 - added new functions for contrast