more type validation