getting rid of non-ie compatible code
adding return for set