please use curly brackets at all if statements. See https://www.imperialviolet.org/2014/02/22/applebug.html