just working around opencv library