some optimzations in bomd
some optimzations in bomd