main function for testing added