change to swig