add detection for set transparency