pub from model