now doing element wise matrix comparison