added check for numeric id