stabalizing code