add paging function definition to file.cu