Doing the right thing for the wrong reason: reputation and moral behavior