added smart AI