added rules and token