change order of timeout call