changed mod and updated timeout