added IE compatibilty