minor improvement on A helper