update for old IE and clean up