add opacity to pre