another update to profile code