improvements to profile