change . and .. judge condition