removed global var
fixed movi