re-facored code for IE8 dulla3rds