input param valid.
tasks refactoring