If you want a real reward from heaven, what you do must be done from the heart. Laws are laws, but real heavenly reward comes from giving and doing that was motivated from a pure heart. The right motivation is just because you love God and people. Loving God enables you to do what is good.