simulate from bmp