switched from Integer to int