update for firefox compatibility