adding brackets to all if() statements