added main function
resolved