typing errors are fixed.