tasks 1-7 without temp files