creating recursive masks
more testing about recursive masks