added vocab param and removed proc