remove unnecessary is_a check