remove type erasure warnings