added some initialization code