replace reflection calls
compilation error