worked on GUI