I have fixed the coding standards on min function