add conditional statement and givens