fixed install to use proper arg not same variable in loop