tried to adapt for ie... did not work