reverse from Integer to int in sample