main file & testing