repairing functionality to remove profile