avoid a strange cannot reassign variable require error