changed func name and subtract to absdiff