created parameter factory
parsing input parameters. with specs.