refactor

changed impact function