added rules using lambda and bind