added bitmap function