avoid using exceeding file position calls