todo for discrete plane