added bkground code