added functions for bitmap extension