no need to use processEvents any longer