bit encoding working
bit encoding working