refactored unit_cluster method in movie model