working on rule binding