child prints median. This fixes #5