add swatir function.