id variable might not have been defined