vector example in preview mode