removing the kind_of check