risky attempt to adjust gallery problems