add logic and ua language