added updating of profile