add getBitLy function