have basic if-then statement implemented