worked on the gui