rename startPos -> start, endPos -> end everywhere
rename fileName -> filename everywhere