added IE compatibility