added variables, started if else