adding err