global name 's' is not defined

replaced `s` with `seq`