tried to implement restart, havent understood why its not working