added binary code