taking out all refs to local var profile