Correcting errors associated with the private statement