added some variables and opening sequence