rules applier almost there