update the code so we fix the slot period time