added 19, not sure about Median code