removed the gui part