added L=Inf, and corrected the error estimation