working on ie8 compatibility