Pseudo code/ cluster logic

added boolean for cluster