added validation so that only the proc number is fetched