initialization method bug