initialized some variables