add example of apodization function