creating agents helper