added check for get int values