set time out as parameter