add the static prev restrict