function in some pages