improvements. swig filter for data length