refactoring of Hammer projection code, fix the "central line issue"