add method to support firefox