Use type() instead of a()