modified for ie 7