array also as parameter