restore type annotation on *