this is the SBIM source code