modified readpar