clear screen before writing