refactorizacion matches