new function in code fregmentpage