make everything const also for better C++ support