added interface for AI