RL finally done. file sorted for ever