remove type assertion which isn't working