added color selection loop