using sidebar code now