how to pass parameter to resolve or reject