trying to solve hospital bug