cleanup
speed optimization in screen rewrite