processed input given in comment by pablohoffman