added parseInt to timeout