why is the type wrong?