adding the bar model and a check in handler