wiritng bit code