moved dx parameters to the preprocessor as well