fix stub to receive amountw