made the slow motion thing a variable