tweak appearance logic