added new timeout function declaration