added processing routine