baseView - for cycle changed to while