working of on the slow gui problem
more efficient
forgotten file