can't get 'time' to work