put in a timer. has more problems