rename the to stack-encode