it works! now optimizing wrapper