remove magic numbers from Views
views: simplify math