substitute entities