fixing function to clear terminal