use head -1 instead of read;