done some initialization