issue fixed with passing int arrays