adding conditional statement