fix arguments passing while fn instantiating