add Code that strong and weak reference