set up time updating, got rid of nasty "this" dependency