an attempt at IE compatibility