working EFD- the discretizer