update opacity rules