general code cleansing in the views