updated clearing variables