improving AI library