updated parameters, modified test, added array