change timeout 0 to 1