implemented SUM metrics and parent/child relationship