put the period on the correct spot