fix recursive scope, some arr functions