add $restart and second assignment