update transparency