fixed else and else if formatting