fixed errors in backgroundprocess - Gary