adding primitive overlay and recipe pattern