add arguments to main and reset method