why can't this be added as part of a setTimeout function() ?