created to-bmp-method