guard against error