remove unused layer transparency (and fix some warnings)