couple more type testing functions