refactored. view dict diet is done.