added some input parameters