refactor brands managing