printing values, but no in the view