making compatible with firefox