making betamax work; refactoring