better treatment of wrongly inserted periods