worked on gui integration