main method to check working