created conditional statements