fixing output for -w option (#8)