typeof shouldn't have been evaluated here