added threading to remove flickering