type handling preparation