fixed looping. now patients randomly go missing. wtf