correction of initilization of objects