Fix z factor of gore (#180)

refactoring