added double-indentations in few blocks of code