setup if statement and data