refact class to array as code combat seems don't support class load