changed else if to elif