fixed the period option