Looping fog overlay

actually i just tried it again with this:

&overlay FOG INTRO shifts to -1 -7 in 7 then overlay FOG INTRO shifts to -717 -7 in zone 1 in 0 and overlay FOG shifts to -1 -7 in zone 1 in 7 then overlay FOG shifts to -717 -7 in zone 1 in 0 loop INFINITE times

but there is an error which is “loop command can only be used with overlay animation commands.”
did i do it wrong?