removed unused gen paramter