Cleanup seq assignment
start list matching
pattern match working, except locals are swapped