setup timer properly