change timeout const value to variable