Removed repeat statement

Also localised xside