rule accepts a anonym function as conditions now