turn dirstoper
allPages param