separated part c code and removed commented out stuff