atnd func works no test