fix compatibility issue with Anton's code
cluster