adding a profile function