create the hierarchy works