added mediaTimer variable reference