refactored movies into one method