powerful watermark function