added retreiev bitstream method