removed unnecessary variables
changes with wfProfile* functions