removed unused functions
updates to ai