before refectoring