fixing the code format errors