update generic stack