advanced example with further customization