switched to const/unsigned int