Another thing....try using array of components instead of having 1,2,3,....
if u use array, it reduces the code to very very much.
u can use "for" loop while allocating memory,adding them to...