parametrizing movie collection method and refactoring functions