making recipe idempotent