remove match so it can be used on rails 4