adding model layer