invoking methods by reflection