encapsulated more logic into patterns
diabled AI for now