remove unnecessary brackets
refactoring
refactor ai offset