setting style prior to insertion