getting the period