reorganize main useful