issues wih mat.at<type>()