fixes for period stuff