error fixed in loop indent