make sure value passed to int is defined