Encountered error in getBoxHist() on multiple function parameters specified; unsure how to resolve