updated macros code: now it passes color to the beads correctly