changing location of timeout call