added main function to test