code for beads