fixed sliding window indentation error