working version of 'overlay' technique