rename periodId to period