fixing incorrect initialization