add solution to median