model passing issue