forEach does not quite work