remove old code from application controller