refactor material:
    manager properties using red black tree
small changes