creating heirarchy system