correcting issue in regularize view following refactoring