insert fucntion in to DisplayObject