added some IE compatibility