updated some variables