probably will fix bugs with res timer