update example.. still does not work correctly