changed form logic plus changed final C and I to lowercase