added newline and fixed if statement