nesting working, needs better tests