working
working for both int and array params'