first code that tries to evaluate rules