renmae root to ilogie
refactor code