changed some run code