implemented multiline if statements