changed initialization of objects