first step towards allocation of bitmaps