try to use afterCode(int) method