modified for ie7