use read instead of readlines