added function "singular", which takes lists of length 1 and removes list context