refactoring, PEP8
fixed errors after refactoring
default anchor for blocks