change order of arguments to htd3