initial bitmap functions