confirmed working
added map cv2 fn