corrent the code using coding standards