taking out opencv functions