Flatten gems