added condition to for side view