added instance_eval for flatening the scope