create bar model and search works