to make code compatible with 2016.2 version; change -D x=(real)* to -D x=*f; otherwise it does not work