stabilize code