more obvious logic for application controller