optimize views
restrict code accessibility