small refactor and writing pulse on the movie