refactor a movies