manage function shadowText from self invoking to standart function