cleanup the globle variables