fixed: bug with new lines in if else statement