implementing bitmap