changes instances to context