contrast code added