changed paramfilter type to intptr_t