updated for selenium script