timeout replaced by $timeout