use a local variable called currentpage