Code refactoring

@fakhreldin-m-abdelkhalik 
check that - review mips module as their was  a conflict because both of us edited it .
I cancelled my indentation as it exactly like yours.