code formatting
close #2 (source from sheinin)