changing over to selenium