added bitmap functions