changed all lists<int> to arrays and params of methods using them