updated mcu function to be able to take multiple input