reverted to a previous version that worked in IE6