avoid warnings about type safety