add example of profile function