added proc for worker