taking the place of another

See: vicarious