simplified the view. works on cpp target