edit the function to get file sector