code modifications to remove hardcoded opacities