updated spam model and util function