method in AI interface