wrap file to adapter the page