fixed compile and run code