use getint function for ID