else if changed to elif