add error measure